
#include <LengthUnit.h>

LengthUnit::LengthUnit(const Uint32 ratio_i,const Unit &baseUnit_i, const string& lengthUnitName_i)
:Unit(ratio_i, baseUnit_i, lengthUnitName_i)
{
}

LengthUnit& LengthUnit::getBaseUnit()
{
        return getInchUnit();
}

LengthUnit& LengthUnit::getYardUnit()
{
        static LengthUnit theYard(3, );
        
        return theYard;
}

LengthUnit& LengthUnit::getMileUnit()
{
        static LengthUnit theMile(1760*3);
        
        return theMile;
}

LengthUnit& LengthUnit::getFeetUnit()
{
        static LengthUnit theFeet(1);
        
        return theFeet;
}

LengthUnit& LengthUnit::getInchUnit()
{
        static LengthUnit theFeet(1);
        
        return theFeet;
}

